package edu.iwyf.pms.controller;

import edu.iwyf.pms.entity.SysPresmission;
import edu.iwyf.pms.entity.SysRole;
import edu.iwyf.pms.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * @Author 王永飞
 * 2021/12/23 14:11
 */
@RestController
@RequestMapping("/pms")
public class SysPermissionController {

    @Autowired
    private SysPermissionService service;

    @RequestMapping(value = "listMenu",method = RequestMethod.GET)
    public List<SysPresmission> searchMenu(@RequestParam(value = "list",required = false)Integer[] list){
        return service.searchMenuByRoleId(list);
    }

}
